package com.ibm.dtp.service.impl;
import javax.jws.WebMethod;
import javax.jws.WebService;

import com.ibm.dtp.base.util.ejb.help.EJBLookupFactory;
import com.ibm.dtp.base.util.ejb.help.EJBLookupHelper;
import com.ibm.dtp.base.ws.WSRequest;
import com.ibm.dtp.base.ws.WSResponse;
import com.ibm.dtp.ejb.session.iface.DemoService;
import com.ibm.dtp.service.iface.DtpWSWithoutEJBIF;

@WebService(name="DtpWSWithoutEJB", targetNamespace="http://service.dtp.ibm.com/", serviceName="DtpWSWithoutEJBService", portName="DtpWSWithoutEJBPort")
public class DtpWSWithoutEJB implements DtpWSWithoutEJBIF{
	
	private EJBLookupHelper helper = EJBLookupFactory.getInstance();
	/**
	 * @param args
	 */
	@WebMethod
	public WSResponse  execute(WSRequest request) {
		DemoService ds = helper.lookup(DemoService.class, "dtp/DtpEjbDemo");
		WSResponse res = ds.getEventSource(request);
		return res;
	}

}
